// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import Vuex from 'vuex'
import VueResource from  'vue-resource'
// import axios from  'axios'
import Promise from  './Promise'
import 'mint-ui/lib/style.css'
import '../font/iconfont.css'
import '../lib/css/common.css'
import '../lib/less/variable.less'
import '../lib/less/normalize.less'
Vue.use(Promise)
Vue.use(MintUI)
Vue.use(Vuex)
Vue.use(VueResource)
Vue.config.productionTip = false;
// Vue.config.silent = true
// Vue.filter('haha',function (value,fmt) {
//     let value1 = new Date(value)
//     if (/(y+)/.test(fmt)) {
//         fmt = fmt.replace(RegExp.$1, (value1.getFullYear() + '').substr(4 - RegExp.$1.length));
//     }
//     let o = {
//         'M+': value1.getMonth() + 1,
//         'd+': value1.getDate(),
//         'h+': value1.getHours(),
//         'm+': value1.getMinutes(),
//         's+': value1.getSeconds()
//     };
//     for (let k in o) {
//         if (new RegExp(`(${k})`).test(fmt)) {
//             let str = o[k] + '';
//             fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : ('00' + str).substr(str.length))
//         }
//     }
//     return fmt;
// })


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
})
